package com.yx.pc.api.service.impl;

import com.yx.pc.api.service.PcTdHistoryService;
import com.yx.system.dao.TdHistoryMapper;
import com.yx.system.entity.TdHistory;
import com.yx.system.service.TdHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public class PcTdHistoryServiceImpl implements PcTdHistoryService {

    @Autowired
    private TdHistoryMapper tdHistoryMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tdHistoryMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TdHistory record) {
        return tdHistoryMapper.insert(record);
    }

    @Override
    public int insertSelective(TdHistory record) {
        return tdHistoryMapper.insertSelective(record);
    }


    @Override
    public TdHistory selectByPrimaryKey(Integer id) {
        return tdHistoryMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TdHistory record) {
        return tdHistoryMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TdHistory record) {
        return tdHistoryMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<TdHistory> queryList(Map<String, Object> map) {
        return tdHistoryMapper.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return tdHistoryMapper.queryTotal(map);
    }
}
